import request from 'umi-request';
import { extendRequest } from '@/utils/request';

export async function updateTaskTag(params) {
  return extendRequest('/tasktag/update', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function addTag(params) {
  return extendRequest('/tasktag/add', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function removeTag(params) {
  return extendRequest('/tasktag/delete', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function queryTaskTagList(params) {
  return extendRequest('/tasktag/list', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}

export async function queryUser(params) {
  return request('/api/rule', {
    params,
  });
}
export async function queryDepart(params) {
  return request('/api/rule', {
    params,
  });
}
